<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>文档就绪函数加载测试</title>
		<script src="../js/jquery-1.8.3.js"></script>
		<script>
			$(document).ready(function(){
				/* var p1 = document.getElementById("demo1");
				alert(p1.innerHTML); */
				alert($("demo1").text());
			});
		</script>
	</head>
	<body>
		<p id="demo1">这是一个段落</p>
	</body>
</html>
